package com.group.prescription.dao;



import com.group.commons.util.CommonStatus;
import com.group.prescription.entity.Prescription;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface PrescriptionDao {
    /**
     * @Description:删除单个处方
     * @Param: int
     * @return: int
     * @Author: ht
     * @Date: 2022/6/6
     */
     int deleteOne(int id);

    /**
     * @Description:批量删除处方
     * @Param: List
     * @return: int
     * @Author: ht
     * @Date: 2022/6/6
     */
    int batchDeletes(List delList);
    /**
     * @Description:查找所有处方
     * @Param:
     * @return: List
     * @Author: ht
     * @Date: 2022/6/6
     */
     List<Prescription> findAll(Prescription prescription);

    /**
     * @Description:根据审核状态查找所有处方
     * @Param:CommonStatus
     * @return: List
     * @Author: ht
     * @Date: 2022/6/7
     */
    List<Prescription> findByStatus(CommonStatus commonStatus);
    /**
     * @Description:筛选处方
     * @Param:CommonStatus
     * @return: List
     * @Author: ht
     * @Date: 2022/6/7
     */
    //List<Prescription> findByCondition(String stratTime,String endTime,String nameOrNUM);
     

}
